package com.pbc.gmp.service.impl;

import com.pbc.gmp.dao.LeftMenuTreeMapper;
import com.pbc.gmp.model.MenuTreeResourseDto;
import com.pbc.gmp.service.IMenuTreeService;
import org.springframework.stereotype.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by UPC on 2017/5/6.
 */
@Service
public class MenuTreeService implements IMenuTreeService {

    @Resource(name="leftMenuTreeDao")
    private LeftMenuTreeMapper leftMenuTreeMapper;
    @Override
    public List<MenuTreeResourseDto> selectLeftMenu() {

        return leftMenuTreeMapper.selectLeftMenu();
    }

    @Override
    public List<MenuTreeResourseDto> selectLeftMenuTree() {
        return leftMenuTreeMapper.selectLeftMenuTree();
    }

    @Override
    public List<MenuTreeResourseDto> selectLeftMenuTreeByUserId(Long id) {
        return leftMenuTreeMapper.selectLeftMenuTreeByUserId(id);
    }

}
